package com.pass.zero;

/**
 * Created by IntelliJ IDEA.
 * User: yt347
 * Date: 5/7/11
 * Time: 5:07 PM
 * To change this template use File | Settings | File Templates.
 */

import java.io.IOException;

import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Reducer;

/**
 * Pass Zero Reducer gets the output of Pass Zero Mapper, puts the Edges in the
 * same group together and outputs the format <GroupID, edge edge edge...> to
 * file.
 * 
 * @author bh349
 */
public class PassZeroReducer extends
		Reducer<IntWritable, Text, IntWritable, Text> {
	@Override
	protected void reduce(IntWritable key, Iterable<Text> values,
			Context context) throws IOException, InterruptedException {
		for (Text value : values) {
			context.write(key, value);
		}

	}

}
